import pickle
from sklearn.datasets import load_digits

with open("best_knn.pickle", "rb") as f:
    knn = pickle.load(f)

digits = load_digits()
X, y = digits.data, digits.target
pred = knn.predict(X[:10])
print("true:", y[:10])
print("pred:", pred)